<link rel="stylesheet" type="text/css" href="<?=gurl('css');?>/account.css" />
<script language="javascript" src="<?=gurl('js');?>/user.js"></script>
<style type="text/css">
<? if(is_array($ad) && count($ad)>0):?>
.w960 {background:url("<?=gurl('data/upload_pic/'.$ad['imageurl']);?>") no-repeat;}
<? endif;?>
@media screen and (-webkit-min-device-pixel-ratio:0) {#remember{margin-bottom:8px;}}
@-moz-document url-prefix() {#remember{margin-bottom:5px;}}  
#remember{_margin-bottom:5px;}
.point {
color:#EA2127;
height:20px;
overflow:hidden;
padding-left:88px;
}
</style>
<div class="w960">
	<div class="regBox">
    	<div class="newUser">
    	<form method="post" action="<?=gurl('accounts/register');?>" onSubmit="return Validator.Validate(this,3);">
        	<h3>注册</h3>
            <p class="regAttention cDGray">日后将以Email登录</p>
            <ul class="regList">
            	<li><label>Email：</label><div><input type="text" class="regInput" name="email" id="email" onBlur="aj_check_register(this.value, 'email', this);" dataType="Email" msg="Email格式错误" /></div></li>
                <li><label>用户名：</label><div><input type="text" class="regInput" name="username" id="username" onBlur="aj_check_register(this.value, 'username', this);" dataType="LimitD" min="1" max="20" msg="用户名格式错误" maxlength="20" /></div></li>
                <li><label>创建密码：</label><div><input type="password" class="regInput" name="password" id="password" dataType="Limit" max="30" maxlength="30" min="6" msg="密码格式错误" /></div></li>
                <li><label>密码确认：</label><div><input type="password" class="regInput" name="password2" id="password2" dataType="Repeat" to="password" msg="密码不一致" /></div></li>
                <li><label>验证码：</label><div><input type="text" class="codeInput" name="yzcode" id="yzcode" /></div><div><img src="<?=gurl('accounts/yzcode');?>" id="code" onClick="this.src=this.src+'/1'" style="cursor:pointer;" /></div><div><a href="javascript:void(0);" onClick="$('#code').attr('src', $('#code').attr('src')+'/1');" class="cCBlue">换一张</a></div></li>
            </ul>
            <p class="referTo"><input name="dosubmit" id="dosubmit" type="submit" value="注册" class="regKey" /></p>
        </form>
        </div>
        <div class="loginRenao">
        <form name="loginform" id="loginform" method="post" action="<?=gurl('accounts/ajaxlogin');?>">
        	<h3>登录</h3>
            <p class="regAttention cDGray">已注册用户请从这里登录</p>
             <ul class="regList">
            	<li><label>Email：</label><div><input type="text" class="regInput" name="loginemail" id="loginemail" dataType="Email" msg="Email错误" /></div></li>
                <li style="height:20px;"><label>密码：</label><div><input type="password" class="regInput" name="loginpassword" id="loginpassword" maxlength="15" dataType="Require" msg="输入密码" /></div></li>
            </ul>
            <p class="point" id="ts">&nbsp;</p>
            <p class="referTo f14px"><input name="remember" id="remember" checked type="checkbox" value="1" style="vertical-align:middle;margin-bottom:5px \0;" /> 记住我</p>
            <p class="referTo"><input value="登录" class="regKey" type="button" onclick="check_sitelogin_form();" name="logindosubmit" id="logindosubmit" /> <span class="forget"><a href="<?=gurl('accounts/forget');?>" class="cCBlue">忘记密码？</a></span></p>
        	<input type="hidden" name="forget" id="forget" value="<?=$forget;?>">
        </form>
        </div>
        <div class="hackbox"></div>
        <p class="backprev"><a href="javascript:void(0);" onclick="window.history.go(-1);">返回前页</a></p>
    </div>
	<div class="hackbox"></div>
</div>

